$OpenBSD: patch-Makefile_in,v 1.4 2014/11/15 17:41:16 bcallah Exp $
--- Makefile.in.orig	Fri Oct  3 17:26:35 2014
+++ Makefile.in	Sat Nov 15 11:44:00 2014
@@ -32,7 +32,7 @@ DDIRS		= docs include src loaders prowiz depackers win
 V		= 0
 LIB		= libxmp.a
 SOLIB		= libxmp.so
-SHLIB		= $(SOLIB).$(VERSION)
+SHLIB		= $(SOLIB).$(LIBxmp_VERSION)
 SONAME		= $(SOLIB).$(VERSION_MAJOR)
 DLL		= libxmp.dll
 DYLIB		= libxmp.$(VERSION_MAJOR).dylib
@@ -91,7 +91,7 @@ lib/$(LIB): $(OBJS)
 
 lib/$(SHLIB): $(LOBJS)
 	@mkdir -p lib
-	@CMD='$(LD) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) $(LD_VERSCRIPT) -o $@ $(LOBJS) $(LIBS)'; \
+	@CMD='$(LD) $(LDFLAGS) -shared $(LD_VERSCRIPT) -o $@ $(LOBJS) $(LIBS)'; \
 	if [ "$(V)" -gt 0 ]; then echo $$CMD; else echo LD $@ ; fi; \
 	eval $$CMD
 	ln -sf $(SHLIB) lib/$(SONAME)
@@ -140,8 +140,6 @@ install: all
 	@if [ -f lib/$(SHLIB) ]; then \
 		echo "Installing $(SHLIB)..."; \
 		$(INSTALL) -m644 lib/$(SHLIB) $(DESTDIR)$(LIBDIR); \
-		ln -sf $(SHLIB) $(DESTDIR)$(LIBDIR)/$(SONAME); \
-		ln -sf $(SONAME) $(DESTDIR)$(LIBDIR)/$(SOLIB); \
 	fi
 	@echo "Installing xmp.h..."
 	@$(INSTALL) -m644 include/xmp.h $(DESTDIR)$(INCLUDEDIR)
